import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import 'package:hygf/bean/AddOperation%20.dart';
import 'package:hygf/bean/add_grid_net_bean.dart';
import 'package:hygf/bean/opetation_detail.dart';
import 'package:hygf/view/image_picker_widget.dart';

import '../../../../bean/CustomerList.dart';

class OperationDetailState {
  bool isReadOnly = true;
  OperationBean operationBean = OperationBean();
  AddOperation addOperation = AddOperation();
  TextEditingController nameController = TextEditingController();
  TextEditingController phoneController = TextEditingController();
  TextEditingController addressController = TextEditingController();
  TextEditingController expoAddressController = TextEditingController();
  TextEditingController describedController = TextEditingController();
  TextEditingController faultDescriptionController = TextEditingController();
  ImagePickerWidgetController beforeController =
      ImagePickerWidgetController();
  ImagePickerWidgetController repairInController =
      ImagePickerWidgetController();
  ImagePickerWidgetController afterController = ImagePickerWidgetController();

  OperationDetailState() {
    var map = Get.arguments;
    if (map["pageData"] != null) {
      operationBean = map["pageData"];
    }
    if(map["title"] != null){
      if(map["title"]  == "待运维"){
        isReadOnly = false;
      }
    }
  }
}
